package response

import (
	"github.com/flipped-aurora/gin-vue-admin/server/model/business"
)

type QuestionnaireInfo struct {
	business.Questionnaire
	List []*QuestionnaireQuestion `json:"list"`
}

// 问题 结构体  Question
type QuestionnaireQuestion struct {
	ID                uint
	QuestionnaireId   uint               `json:"questionnaireId" form:"questionnaireId" gorm:"column:questionnaire_id;comment:问卷Id;size:12;"`         //问卷Id
	QuestionnaireUuid string             `json:"questionnaireUuid" form:"questionnaireUuid" gorm:"column:questionnaire_uuid;comment:问卷uuid;size:32;"` //问卷uuid
	Text              string             `json:"text" form:"text" gorm:"column:text;comment:题目内容;size:200;"`                                          //题目内容
	Sort              int32              `json:"sort" form:"sort" gorm:"column:sort;comment:题目序号;size:8;"`                                            //题目序号
	QType             int32              `json:"qType" form:"qType" gorm:"column:q_type;comment:问题类型;size:8;"`                                        //问题类型
	Msg               string             `json:"msg" form:"msg" gorm:"column:msg;comment:额外信息;size:200;"`                                             //额外信息
	QuestionType      string             `json:"questionType" form:"questionType" gorm:"column:question_type;comment:类别名称;size:20;"`                  //类别名称
	List              []*business.Option `json:"list"`
}
